"use strict";
cc._RF.push(module, 'e706cWJEvBCCpdfa4PD1Qj7', 'NativeManager');
// scripts/NativeManager.js

"use strict";

var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {
  value: !0
});

var i = t("GlobalUserData"),
    n = "org/cocos2dx/javascript/AppActivity",
    a = function () {
  function t() {
    this.is233 = !0, this.fullVideoInterval = 0, this.insertInterval = 0;
  }

  return Object.defineProperty(t, "instance", {
    get: function get() {
      return null == this._instance && (this._instance = new t()), this._instance;
    },
    enumerable: !1,
    configurable: !0
  }), t.prototype.init = function (t) {
    var e = this;
    jsb.reflection.callStaticMethod(n, "initJava", "(Ljava/lang/String;)V", "你好java"), window.enterGame = function (e) {
      console.log("我收到：" + e), t && t();
    }, window.videoSuccess = function (t) {
      console.log("showVideoAd-领取奖励" + t), e._videoSuccess && e._videoSuccess();
    }, window.videoFailed = function (t) {
      console.log("showVideoAd-领取失败" + t), e._videoFailed && e._videoFailed();
    }, window.videoError = function (t) {
      console.log("showVideoAd-视频错误" + t), e._videoError && e._videoError();
    }, window.showVideo = function (t) {
      console.log("showVideo" + t);
    }, window.closeVideo = function (t) {
      console.log("closeVideo" + t);
    };
  }, t.prototype.exitApplication = function () {
    jsb.reflection.callStaticMethod(n, "exitApplication", "(Ljava/lang/String;)V", "退出程序");
  }, t.prototype.resetCallBack = function () {
    this._videoSuccess = null, this._videoFailed = null, this._videoError = null;
  }, t.prototype.showVideoAd = function (t, e, o) {
    this.resetCallBack(), this._videoSuccess = t, this._videoFailed = e, this._videoError = o;
  }, t.prototype.showFullVideoAd = function () {
    this.resetCallBack(), i["default"].fullScreenVideoInterval.X;
  }, t.prototype.showInterstitialAd = function () {
    i["default"].insertAD.X;
  }, t._instance = null, t;
}();

o["default"] = a;

cc._RF.pop();